package kontrol;

/**
 *
 * @author kagioglu
 */
public class WheelTester
{
    public static void main( String[] args )
    {
        Wheel<Integer> w = new Wheel<Integer>(null, new Integer[] { 1, 3, 5 });
        System.out.println("init: " + w.getSelection());
        for(int i = 0; i < 5; i++)
        {
            w.increment();
            System.out.println("next: " + w.getSelection());
        }
        for(int i = 0; i < 5; i++)
        {
            w.decrement();
            System.out.println("prev: " + w.getSelection());
        }

        w = new Wheel<Integer>(4, new Integer[] { 2, 4, 6 });
        System.out.println("init: " + w.getSelection());
        for(int i = 0; i < 5; i++)
        {
            w.increment();
            System.out.println("next: " + w.getSelection());
        }
        for(int i = 0; i < 5; i++)
        {
            w.decrement();
            System.out.println("prev: " + w.getSelection());
        }

        w = new Wheel<Integer>(4, new Integer[] {});
        System.out.println("init: " + w.getSelection());
        for(int i = 0; i < 5; i++)
        {
            w.increment();
            System.out.println("next: " + w.getSelection());
        }
        for(int i = 0; i < 5; i++)
        {
            w.decrement();
            System.out.println("prev: " + w.getSelection());
        }
    }
}
